<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <title>Student Form</title>
    <meta charset="UTF-8">
</head>
<body>
<h1>Student Form</h1>
<form th:action="@{/students}" th:object="${student}" method="post">
    <div>
        <label>Student ID:</label>
        <input type="text" th:field="*{studentId}" required/>
    </div>
    <div>
        <label>Name:</label>
        <input type="text" th:field="*{name}" required/>
    </div>
    <div>
        <label>Email:</label>
        <input type="email" th:field="*{email}"/>
    </div>
    <div>
        <label>Phone:</label>
        <input type="text" th:field="*{phone}"/>
    </div>
    <div>
        <button type="submit">Save</button>
    </div>
</form>
</body>
</html>
